#ifndef CREATEGROUP_H
#define CREATEGROUP_H

#include <QWidget>
#include <QTcpSocket>
#include <QHostInfo>
#include <QDateTime>
#include<QMessageBox>
namespace Ui {
class Creategroup;
}

class Creategroup : public QWidget
{
    Q_OBJECT

public:
    explicit Creategroup(QString uName,QWidget *parent = nullptr);
    ~Creategroup();
    QTcpSocket *tcpClient;
    qint16 port;
    QString getLocalIP();
    QString uName;

private slots:
    void on_submit_pushButton_clicked();
    void processPendingDatagrams();

private:
    Ui::Creategroup *ui;
};

#endif // CREATEGROUP_H
